﻿<!--产生权限相关的指定工作组隐藏域-->
@model ElingOA6_Admin_DSJCJ.Areas.Admin.Models.DocumentPubEditViewModel
@GenerateHidden()
@helper GenerateHidden()
    {
        //查看指定工作组
        var tmpList = Model.documentAuthorityList.Where(s => s.FPronoun == "GROUP").ToList();
        List<ElingOA6_Admin_DSJCJ.Areas.Admin.Models.CommonValueModel> objList = new List<ElingOA6_Admin_DSJCJ.Areas.Admin.Models.CommonValueModel>();
        List<ElingOA6_Admin_DSJCJ.Areas.Admin.Models.CommonValueModel> objPropList = new List<ElingOA6_Admin_DSJCJ.Areas.Admin.Models.CommonValueModel>();//级别性质列表
        if (tmpList.Count > 0)
        {
            foreach (ElingOA6_Admin_DSJCJ.Model.documentAuthority documentAuthorityModel in tmpList)
            {
                objList.Add(new ElingOA6_Admin_DSJCJ.Areas.Admin.Models.CommonValueModel() { Text = documentAuthorityModel.AllName, Value = documentAuthorityModel.FSourceNo });
                objPropList.Add(new ElingOA6_Admin_DSJCJ.Areas.Admin.Models.CommonValueModel() { Text = documentAuthorityModel.FProp, Value = documentAuthorityModel.FSourceNo });
            }
    @Html.Hidden("hdSelLookWorkGroupKeys", Newtonsoft.Json.JsonConvert.SerializeObject(objList));
    @Html.Hidden("hdSelLookWorkGroupPropKeys", Newtonsoft.Json.JsonConvert.SerializeObject(objPropList));
        }
        else
        {
    @Html.Hidden("hdSelLookWorkGroupKeys", "");
    @Html.Hidden("hdSelLookWorkGroupPropKeys", "");
        }
}